<?php if(!IS_AJAX){?>

<include file="Public:header" />
<div class="row states-info">
  <div class="col-sm-7 col-md-8 col-lg-9">
    <div class="panel panel-default">
      <div class="panel-heading"><span class="pagetitle">客户管理</span></div>
      <div class="panel-body">
        <div class="DataList">
          <?php }?>
          
          <!-- 数据主体 -->
          <volist name="list" id="vo">
            <div class="DataListItem DataListItembg item{$vo.id}" style="margin-top:4px; padding:0 5px;color:black">
              <div class="row">
                <div class="col-sm-6 col-xs-12">
                  <div class="widget-content padded">
                    <h4 style="margin:0; font-size:16px; font-weight:bold; padding:5px 0;">{$vo.title} </h4>
                    <p>联系人：{$vo.contacts}</p>
                    <p>联系电话：{$vo.tel}</p>
                    <p>公司地址：{$vo.address}</p>
                    <notempty name="vo['lastlog']">
                      <p>最新日志：{$vo.lastlog}</p>
                    </notempty>
                  </div>
                </div>
               
                <div class="col-sm-6 col-xs-12 hidden-xs" style="text-align:right;">
                  <div class="optionBtnBox"><a class="button deleteBtn" removeElement=".CustomerList .item{$vo.id}" href="javascript:void(0);" rel="{:U('delete', array('id' => $vo['id']))}">
                  
                  <if condition="getAccessMenu($accessList, 'Intesys', 'Customer', 'delete')"> <!--这是卢永浩添加-->
                  
                  <span class="fa icon-trash"></span> 删除</a>　<a class="button" href="#window" onClick="_openWindow('{:U('edit', array('id' => $vo['id']))}', 500, '修改客户信息', '确认', null, '');">
                  </if> <!--这是卢永浩添加的-->
                   <if condition="getAccessMenu($accessList, 'Intesys', 'Customer', 'edit')"> <!--这是卢永浩添加-->
                   
                  <span class="fa icon-edit"></span> 编辑</a> 　 <a onClick="_openWindow('{:U('addlog', array('id' => $vo['id']))}', 500, '日志', '确认', null, '');" class="button" href="##" rel="">
                  </if> <!--这是卢永浩添加的-->
                   <if condition="getAccessMenu($accessList, 'Intesys', 'Customer', 'addlog')"> <!--这是卢永浩添加-->
                  <span class="fa icon-file-text-alt"></span> 日志</a>
                 </if> <!--这是卢永浩添加的</if>-->
                  </div>
                </div>
                
              </div>
              <div class="BottomOptionBtn hidden">
              <if condition="getAccessMenu($accessList, 'Intesys', 'Customer', 'delete')"> <!--这是卢永浩添加-->
              <a class="button BottomdeleteBtn" removeElement=".CustomerList .item{$vo.id}" href="javascript:void(0);" rel="{:U('delete', array('id' => $vo['id']))}"><span class="fa icon-trash"></span>删除</a> 
               </if> <!--这是卢永浩添加的</if>-->
              <if condition="getAccessMenu($accessList, 'Intesys', 'Customer', 'edit')"> <!--这是卢永浩添加-->
              <a class="button" href="#window" onClick="_openWindow('{:U('edit', array('id' => $vo['id']))}', 500, '修改客户信息', '保存', null, '');"><span class="fa icon-edit"></span> 编辑</a> 
               </if> <!--这是卢永浩添加的</if>-->
              <if condition="getAccessMenu($accessList, 'Intesys', 'Customer', 'addlog')"> <!--这是卢永浩添加-->
              <a onClick="_openWindow('{:U('addlog', array('id' => $vo['id']))}', 500, '日志', '确认', null, '');" class="button" href="##" rel=""><span class="fa icon-file-text-alt"></span> 日志</a> 
               </if> <!--这是卢永浩添加的</if>-->
              
              </div>
            </div>
            
            <!-- 数据主体结束 --> 
            
          </volist>
          <?php if(!IS_AJAX){?>
        </div>
        <div class="loading hidden">正在加载</div>
        <div class="PagesBox"><?php echo $pages;?></div>
      </div>
    </div>
  </div>
  <div class="col-sm-5 col-md-4 col-lg-3">
    <div class="affixelement affix" style="width: 294px;">
  <if condition="getAccessMenu($accessList, 'Intesys', 'Customer', 'add')">
  <div class="panel green-bg" style="cursor:pointer" onClick="_openWindow('<?php echo U('add');?>',500, '新增客户信息', '提交',null,'')">
      <div class="panel-body">
        <div class="row">
          <div class="col-xs-3"> <i class="fa icon-users"></i> </div>
          <div class="col-xs-7">
            <h4>新增客户信息</h4>
            <span class="state-title"> <a class="text-success" href="#" style="color:#fff">点击这里新增客户信息</a> </span> </div>
          <div class="col-xs-2"> <span class="fa icon-angle-right"></span> </div>
        </div>
      </div>
    </div>
    </if>
    <div class="panel">
      <header class="panel-heading"> 客户分类 </header>
      <div class="panel-body"> <a class="btn listajaxrequest on"  style="margin-top:10px;background:#65CEA7;color:#fff" href="javascript:void(0);" rel="<?php echo U('');?>">全部</a>
        <volist name='holy' id='holy'><a class="btn listajaxrequest" style="margin-top:10px;background:#65CEA7;color:#fff" href="javascript:void(0);" rel="{:U('',array('id'=>$holy['id']))}">{$holy.name}</a>&nbsp;</volist>
      </div>
    </div>
    </div>
  </div>
</div>
<include file="Public:script" />
</body></html><?php }?>